//user.js
let Models = require("../models");

module.exports = {
  validList: function(request, reply) {
    return Models.employee
      .findAll({
        where: {
          emp_flag: 1 //有效的
        }
      })
      .then(function(result) {
        return result || [];
      });
  }
};
